<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改用户</title>
#include("../jscss.html")
<script type="text/javascript">
	$(function(){
		$('#submit').click(function(){
			 $('#ff').form('submit',
				 {
				 url:'modify',
				 onSubmit: function(){
					var isValid = $(this).form('validate');
					if (!isValid){
						return false;
					}else{
						$('#ff').submit();
						return false
					}
				}
			 });
		});
	});
	$(function(){
		var errMsg = "#(errMsg??0)";
		if(errMsg != 0){
			$.messager.alert("提醒",errMsg);
		}
	});
	$(function(){
		$('#back').click(function(){
			window.location.replace('list');
		});
		
		$('#network').combobox({
	    	url:'networkList',
	    	valueField:'id',
	    	textField:'network',
	});
		$('#business').combobox({
	    	url:'businessList',
	    	valueField:'businessID',
	    	textField:'business',
	});
	});
</script>
</head>
<body>
        <div id="f-container">
		<h2>添加包裹</h2>
        <form id="ff" method="post" action="insert">
            <table cellpadding="5">
            	<tr>
            		<td class="field">编号:</td>
            		<td>
            		<input class="easyui-textbox" type="text" name="packageinfo.packageCode" data-options="required:true"></input>
            		</td>
                    <td class="field">归属：</td>
                    <td>
	                    <select id="role" class="easyui-combobox" name="packageinfo.bank" style="width:175px;" data-options="required:true">
						    <option value="2" selected>交通银行</option>
						    <option value="3" >农业银行</option>
						    <option value="4" >建设银行</option>
						</select>
                    </td>
                </tr>
                <tr>
                    <td class="field">类型：</td>
                    <td>
	                    <select id="role" class="easyui-combobox" name="packageinfo.type" style="width:175px;" data-options="required:true">
						    <option value="0" selected>小包</option>
						    <option value="1" >大包</option>
						</select>
                    </td>
                    <td class="field">网点：</td>
                    <td><input id="network" name="packageinfo.networkID" value="" data-options="required:true" ></input></td>
                </tr>
                <tr>
                    <td class="field">部门：</td>
                    <td><input class="easyui-textbox" type="text" name="packageinfo.department" ></input></td>
                    <td class="field">业务：</td>
                    <td><input id="business" value="" name="packageinfo.businessID" data-options="required:true" ></input></td>
                </tr>
            </table>
        </form>
        <div style="text-align:center;padding:5px">
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save'" id="submit">保存</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" id="back" data-options="iconCls:'icon-undo'">返回列表</a>
        </div>
        </div>
</body>
</html>